package by.grsu.transport.model;

import java.sql.Date;

public class TransportItem {
	
	private int id;
	private TransportType transportType; 
	private Route route; 
	private User user;
	private int passangerCapacity;
	private Date dateOfLastRepair;
	private Date dateOfInspection;
	
	public TransportItem(){}
	
	enum TransportType{
		BUS, TRLLEYBUS, TRAM
	}
	
	public int getPassangerCapacity() {
		return passangerCapacity;
	}
	public Date getDateOfLastRepair() {
		return dateOfLastRepair;
	}
	public void setDateOfLastRepair(Date dateOfLastRepair) {
		this.dateOfLastRepair = dateOfLastRepair;
	}
	public Date getDateOfInspection() {
		return dateOfInspection;
	}
	public void setDateOfInspection(Date dateOfInspection) {
		this.dateOfInspection = dateOfInspection;
	}
	public Route getRoute() {
		return route;
	}
	public void setRoute(Route route) {
		this.route = route;
	}
	public TransportType getTransportType() {
		return transportType;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

}
